﻿using _01_Tower4._0.GameFrame.System;
using _01_Tower4._0.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _01_Tower4._0.Skills.Base
{
    internal class Skill
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public string FeedBack { get; set; }
        public int Cd { get; set; }
        public int Mp { get; set; }

        public Skill(int id, string name, string description, string feedBack,int cd, int mp) 
        {
            Id = id;
            Name = name;
            Description = description;
            FeedBack = feedBack;
            Cd = cd;
            Mp = mp;
        }

        public void CoolDown()
        {
            if (Cd > 0)
            {
                Cd--;
            }
        }
    }
}